Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 2 - Movie Controller Components / Movie Controller Components Reference
Movie Controller Functions / Associating Movies With Controllers


MCNewAttachedController

The MCNewAttachedController function associates a specified movie with a movie controller.

pascal ComponentResult MCNewAttachedController (MovieController
                                              mc, Movie theMovie,
                                              WindowPtr w,
                                              Point where);
mc
Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager's OpenComponent or OpenDefaultComponent function.
theMovie
Identifies the movie to be associated with the movie controller.
w
Identifies the window in which the movie is to be displayed. The movie controller component sets the movie's graphics world to match this window. If you set the w parameter to nil, the component uses the current window.
where
Specifies the upper-left corner of the movie within the window specified by the w parameter. The movie controller component uses the movie's boundary rectangle to determine the size of the movie (the Movie Toolbox's GetMovieBox function returns this rectangle).
DESCRIPTION
The MCNewAttachedController function forces the controller to be attached to the movie and sets the controller to be visible.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help